#include<bits/stdc++.h>
using namespace std;
long long x1,x2,x3,x4;
long long y11,y2,y3,y4,a,b;
long long max(long long a,long long b);
int main(){
	cin>>x1>>y11>>x2>>y2;
	cin>>x3>>y3>>x4>>y4;
	cin>>a>>b;
	long long amax=max(x3-x1,x2-x4);
	long long bmax=max(y3-y11,y2-y4);
	if(a<=amax&&b<=bmax) {
	cout<<"Yes";
	return 0;}
	else if(a<=amax&&b<=y4-y3) {
	cout<<"Yes";
	return 0;}
	else if(b<=bmax&&a<=x4-x3){
		cout<<"Yes";
		return 0;
	};
	cout<<"No"; 
	return 0;
}
long long max(long long a,long long b){
	return a>b?a:b;
} 
